package com.appkubes.mall.core.service;

import com.appkubes.base.core.mbp.AbstractBaseService;
import com.appkubes.mall.core.dao.BaseMallAnnouncementDao;
import com.appkubes.mall.core.entity.MallAnnouncement;

import com.appkubes.base.core.entity.vo.PageVO;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @author Rongjie
 * @description
 */

public interface BaseMallAnnouncementService extends AbstractBaseService<BaseMallAnnouncementDao, MallAnnouncement> {

    MallAnnouncement getOneByEntity(MallAnnouncement entity);

    List<MallAnnouncement> selectListByEntity(MallAnnouncement entity);

    IPage<MallAnnouncement> selectPageByEntity(IPage<MallAnnouncement> page);
    IPage<MallAnnouncement> selectPageByEntity(PageVO pageVO);

    IPage<MallAnnouncement> selectPageByEntity(MallAnnouncement entity, IPage<MallAnnouncement> page);
    IPage<MallAnnouncement> selectPageByEntity(MallAnnouncement entity, PageVO pageVO);

    IPage<MallAnnouncement> selectPageByEntity(MallAnnouncement entity, Integer pageNo, Integer pageSize);

    Boolean removeByEntity(MallAnnouncement entity);
}
